package tinybase.rm;
import tinybase.basic.RC;
import tinybase.pf.PageNum;
import tinybase.pf.Slot;

public class RID {
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + pageNum;
		result = prime * result + slotNum;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RID other = (RID) obj;
		if (pageNum != other.pageNum)
			return false;
		if (slotNum != other.slotNum)
			return false;
		return true;
	}

	public RID() {
		
	}
	
	public RID(int pageNum, int slotNum) {
		
	}
	
	public RC getPageNum(PageNum refPageNum) {
		return RC.RM_SUCCESS;
	}

	public RC getSlotNum(Slot refSlot) {
		return RC.RM_SUCCESS;
	}
	
	private int pageNum;

	private int slotNum;
}
